<?php if (DEBUG_MODE) {?>
<script type="text/javascript">
$(function(){
  $('#debug_toggle').click(function(){
    $('#debug_info').toggle();
  });
});
</script>
<div id="debug_info" style="width:100%;display:none;text-align:left;">
  <pre>
<?php
  print_r($_POST);
  print_r($_GET);
  print_r($_COOKIE);
  print_r($_SESSION);
  print_r($_SERVER);
?>
  </pre>
</div>
<div id="debug_toggle" style="width: 100%;height: 5px;background: red;"></div>
<?php }?>